package cn.net.zhenchan.dao;


import cn.net.zhenchan.model.User;

import java.util.List;

public interface BbsUserMapper {
	int deleteByPrimaryKey(List<Long> ids);

    int insert(User user);

    int insertSelective(User user);

    User selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(User user);

    int updateByPrimaryKey(User user);
    
    List<User> queryAllUsers();
    
    Integer count();
    
    List<User> queryAllUsersByPage(User user);
    
    Integer countByPage(User user);
    
    User queryLoginCondition(User user);
    
    User queryUserNameExists(User user);
    
    User queryLoginFrontCondition(User user);
    
    List<User> queryBbsUserByIds(List<Long> ids);
    
    User statisticsBbsUsers();
    User statisticsBbsUsersOnline();
    //找回密码，先查询是否存在
    User queryBbsUserByEmail(String email);
    User queryBbsUserByEmailWithoutValidation(String email);
    //查询前10帖子最多的
    List<User> queryTop10BBsUsers();
    List<User> queryAllBBsUsers();
    List<User> queryManufactureUsers();
}